package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2021-08-06
 */
@Data
@DbTable(tableName = "t_section_park_relation")
public class SectionParkRelation extends BaseEntity {
        /**
     * 标段Id  t_section.c_id
     */
    @DbTableField(columnName = "c_section_id", dbType = DbTypeEnum.INTEGER)
    public Integer sectionId ;

    /**
     * 公园Id t_park.c_id
     */
    @DbTableField(columnName = "c_park_id", dbType = DbTypeEnum.INTEGER)
    public Integer parkId ;

    /**
     * 关联开始时间
     */
    @DbTableField(columnName = "c_begin_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime beginDate ;

    /**
     * 关联结束时间
     */
    @DbTableField(columnName = "c_end_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime endDate ;

    /**
     * 关联状态 1 当前 2 历史
     */
    @DbTableField(columnName = "c_status", dbType = DbTypeEnum.SMALLINT)
    public Short status ;


}
